package com.rc.evcharger.service.enterprise;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.enterprise.EnterpriseSubmemberShareMapper;
import com.rc.evcharger.model.enterprise.EnterpriseSubmemberShare;
import com.rc.evcharger.model.enterprise.EnterpriseSubmemberShareExample;

import java.math.BigDecimal;

/**
 * Create by Yang on 2021/5/26
 */
public interface EnterpriseSubmemberShareService extends BaseService<Long, EnterpriseSubmemberShare, EnterpriseSubmemberShareExample, EnterpriseSubmemberShareMapper> {

    EnterpriseSubmemberShare selectByTenantCodeAndMemberId(String tenantCode, Long memberId);

    BigDecimal updatePowerOrAccountByOrderInfo(String tenantCode, Long memberId, BigDecimal power, BigDecimal account);

    BigDecimal selectMoneyByTenantCodeAndMemberId(String tenantCode, Long memberId);

}
